﻿@model DateTime
@{
    var baseDate = new DateTime(1970, 1, 1);
    var timespan = Model.Subtract(baseDate);
    var milliseconds = timespan.TotalMilliseconds;
    
}
<span data-date="@Math.Ceiling(milliseconds)">@Model.ToString()</span>